package com.baizhi.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Car {
    private String id;
    private String productid;
    private String skuid;
    private String name;
    private Double minprice;
    private Double maxprice;
    private Double deposit;
    private Integer count;
    private Integer lease;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startdate;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date overdate;

    @Override
    public String toString() {
        return "Car{" +
                "id='" + id + '\'' +
                ", productid='" + productid + '\'' +
                ", skuid='" + skuid + '\'' +
                ", name='" + name + '\'' +
                ", minprice=" + minprice +
                ", maxprice=" + maxprice +
                ", deposit=" + deposit +
                ", count=" + count +
                ", lease=" + lease +
                ", startdate=" + startdate +
                ", overdate=" + overdate +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getProductid() {
        return productid;
    }

    public void setProductid(String productid) {
        this.productid = productid;
    }

    public String getSkuid() {
        return skuid;
    }

    public void setSkuid(String skuid) {
        this.skuid = skuid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getMinprice() {
        return minprice;
    }

    public void setMinprice(Double minprice) {
        this.minprice = minprice;
    }

    public Double getMaxprice() {
        return maxprice;
    }

    public void setMaxprice(Double maxprice) {
        this.maxprice = maxprice;
    }

    public Double getDeposit() {
        return deposit;
    }

    public void setDeposit(Double deposit) {
        this.deposit = deposit;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getLease() {
        return lease;
    }

    public void setLease(Integer lease) {
        this.lease = lease;
    }

    public Date getStartdate() {
        return startdate;
    }

    public void setStartdate(Date startdate) {
        this.startdate = startdate;
    }

    public Date getOverdate() {
        return overdate;
    }

    public void setOverdate(Date overdate) {
        this.overdate = overdate;
    }

    public Car() {
    }

    public Car(String id, String productid, String skuid, String name, Double minprice, Double maxprice, Double deposit, Integer count, Integer lease, Date startdate, Date overdate) {
        this.id = id;
        this.productid = productid;
        this.skuid = skuid;
        this.name = name;
        this.minprice = minprice;
        this.maxprice = maxprice;
        this.deposit = deposit;
        this.count = count;
        this.lease = lease;
        this.startdate = startdate;
        this.overdate = overdate;
    }
}
